
/*--App--*/
var _self = this, _table = null, _tabControl = null;

_self.index = function(search, data) {
    var a = this;
    _table = new $.Form.Table({
        module: a.module,
        app: a.app,
        rowNum: true,
        bAutoCallBack: true,
        action: {
            edit: ["id"]
        },
        pk: "id",
        aaSorting: [['time', 'desc']],
        oTableSearch: {
            content: search,
            clear: true
        },
        thead: {
            id: {
                sClass: "center",
                bVisible: false
            },
            active_type: {
                sClass: "center"
            },
            title: {
                sClass: "center"
            },
            account: {
                sClass: "center"
            },
            nickname: {
                sClass: "center"
            },
            name: {
                sClass: "center"
            },
            time: {
                sClass: "center",
                sType: "datetime",
            },
            u_time: {
                sClass: "center",
                sType: "datetime",
            },
            sign_status: {
                sClass: "center"
            }
        }
    });
    _tabControl = $.TabControl.addControl({app: a.app, module: a.module, action: a.action, Control: _table});

};
_self.edit = function(html) {
    var $html = $(html);
    $.dialogForm($html, this.lang);
    //$.Log( $('[data-action]',$html));  ;

};
_self.do_edit = function() {
    if (this.dialog)
        this.dialog.modal('hide');
    _table.DataTable.fnDraw();
};

/*--/App--*/

